<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>学习13</title>
</head>

<body>
    <button id="add">加1</button><button id="addTen">加10</button><button id="add100">加100</button>
    <div id="app">0</div>
</body>
<script src="./jquery.min.js"></script>
<script>
    $(document).ready(function() {
        let i = 0;
        $("#add").click(function() {
            i++;
            $("#app").text(i);
        })
        $("#addTen").click(function() {
            i += 10;
            $("#app").text(i);
        })
        $("#add100").click(function() {
            i += 100;
            $("#app").text(i);
        })
    })
</script>

</html>
